package com.itheima.threadsynchronizedsecond;

public class ThreadSafetyDemo {
    public static void main(String[] args) {
        // 创建一个账户对象, 并初始化金额10w
        Account acc = new Account("6226 0000 0000 0000", 100000);

        // 创建两个线程, 每个线程取款10w
        new DrawThread("小红", acc).start();
        new DrawThread("小明", acc).start();

    }
}
